/** @format */

"use strict";
const fs = require("fs");
const { Controller } = require("egg");

class AllController extends Controller {
    async index() {
        const { ctx } = this;
        console.log(__dirname + `/../public/dist/index.html`, "__dirname");
        let data = fs.readFileSync(__dirname + `/../public/index.html`);
        ctx.body = data.toString();
    }
}

module.exports = AllController;
